package com.mpyy.service.sales;

import com.mpyy.dao.sales.ReturnedPurchaseDaoInter;
import com.mpyy.pojo.DepotInfo;
import com.mpyy.pojo.InventoryDesc;
import com.mpyy.pojo.ProductInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Description ReturnedPurchaseServiceImpl
 * @Author YYJC
 * @Date 2022-03-07 9:19
 */
@Service(value = "returnedPurchaseService")
public class ReturnedPurchaseServiceImpl implements ReturnedPurchaseServiceInter {
    @Autowired
    @Qualifier(value = "returnedPurchaseDao")
    private ReturnedPurchaseDaoInter returnedPurchaseDaoInter;

    /**
     * 查询商品清单
     * @param productInfo
     * @return
     */
    @Override
    public List<ProductInfo> searchReturnedPurchase(ProductInfo productInfo) {
        List<ProductInfo> productInfos = returnedPurchaseDaoInter.searchReturnedPurchase (productInfo);
        return productInfos;
    }

    /**
     * 查询仓库
     * @return
     */
    @Override
    public List<DepotInfo> searchStorehouse() {
        List<DepotInfo> depotInfos = returnedPurchaseDaoInter.searchStorehouse ( );
        return depotInfos;
    }

    /**
     * 商品批次信息
     * @param inventoryDesc
     * @return
     */
    @Override
    public List<InventoryDesc> searchCommodityBatch(InventoryDesc inventoryDesc) {
        List<InventoryDesc> inventoryDescs = returnedPurchaseDaoInter.searchCommodityBatch (inventoryDesc);
        return inventoryDescs;
    }


}
